/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.wooxes.client;

import com.google.gwt.user.client.rpc.IsSerializable;
import org.gwtwidgets.client.util.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author alladanosa
 */
public class Entrega implements IsSerializable {
    
    private int id;
    private String alumne;
    private String arxiu;
    private Date data;

    public Entrega(){
    }
    
    public void setId(int i){
        id = i;
    }
    
    public int getId(){
        return id;
    }
    
    public void setAlumne(String s){
        alumne = s;
    }
    
    public String getAlumne(){
        return alumne;
    }

    public void setArxiu(String s){
        arxiu = s;
    }
    
    public String getArxiu(){
        return arxiu;
    }
    
    public void setData(Date d){
        data = d;
    }
    
    public Date getData(){
        return data;
    }
    
    public String getFormattedData(){
        SimpleDateFormat format1 = new SimpleDateFormat("dd/MM/yyyy");
        SimpleDateFormat format2 = new SimpleDateFormat("HH:mm:ss");
        String sdata =  format1.format(getData()) + " " + format2.format(getData());
        
        return sdata;
    }
}
